﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MvcMall.Framework.Region
{
    public interface IAreaHelper
    {
        /// <summary>
        ///  获取所有省份数据
        /// </summary>
        /// <returns>省份列表</returns>
        IList<string> GetProvince();

        /// <summary>
        /// 根据省份名称获取城市实体数据
        /// </summary>
        /// <param name="province">省份名称</param>
        /// <returns>返回属于该省份城市实体数据</returns>
        IList<string> GetCityByProvince(string province);


        /// <summary>
        /// 获取省份名称
        /// </summary>
        /// <param name = "provinceId">用户信息的省份ID。</param>
        /// <returns></returns>
        string GetProvince(int? provinceId);



        /// <summary>
        /// 获取城市名称
        /// </summary>
        /// <param name = "provinceId">用户信息的省份ID。</param>
        /// <param name = "cityId">用户信息的城市ID。</param>
        /// <returns></returns>
        string GetCity(int? provinceId, int? cityId);
         

        /// <summary>
        /// 根据省份名称获取城市数据
        /// </summary>
        /// <param name="province">省份名称</param>
        /// <returns>返回属于该省份城市数据</returns>
        IList<Area> GetCityByProvinceToEntity(string province);


        /// <summary>
        ///  获取所有省份数据
        /// </summary>
        /// <returns>省份实体列表</returns>
        IList<Area> GetProvinceToEntity();
    }
}
